package com.axxc.jpa.pattendegign.filter;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName MarryCriteria
 * @Description //TODO 构造一个结婚的过滤器
 * @author xxc
 * @data 2018年9月8日下午11:14:13
 * @see {@link http://gitee.com/biuabiu/ }
 */
public class MarryCriteria implements CriteriaFilter {

	@Override
	public List<Person> doFiler(List<Person> personLists) {
		List<Person> arrayList = new ArrayList<>();
		personLists.forEach(e -> {
			if (2 == e.getMaritalStatus()) {
				arrayList.add(e);
			}
		});
		return arrayList;
	}

}
